import { useEffect, useState } from "react";
import { getRoles } from "../../../api/roles";
function useRolesList(){
    let [list,setList] = useState([]);
    useEffect(()=>{
        getRoles().then(res=>{
            setList(res.data.data);
        })
    },[])
    return list
}
export default useRolesList